
/*
 *
 * All Rights Reserved.
 */
package com.model.demo.designmodel.delegate.simple;

import java.util.HashMap;
import java.util.Map;

/**
 * Leader
 *
 * @author Liao Dongshan, 2019年06月10日
 *
 */
public class Leader {
    Map<String,IEmployee> map=new HashMap<>();

    public Leader(){
        map.put("加密",new EmployeeA());
        map.put("架构",new EmployeeB());
    }

    public void doing(String command){
        map.get(command).doing(command);

    }
}
